package org.garbagecan.springstudy.schedule.sync;

import java.util.TimerTask;

public class SynchronizeTask extends TimerTask {

	private SynchronizeService synchronizeService;

	@Override
	public void run() {
		try {
			synchronizeService.synchronize();
		} catch(Exception ex) {
			ex.printStackTrace();
		}
	}

	public SynchronizeService getSynchronizeService() {
		return synchronizeService;
	}

	public void setSynchronizeService(SynchronizeService synchronizeService) {
		this.synchronizeService = synchronizeService;
	}
}
